package com.study.kt._04project.game_tank.model

import com.study.kt._04project.game_tank.Config
import org.itheima.kotlin.game.core.Painter

/**
 * 草坪
 */
class Grass(override val x: Int, override val y: Int) : View {
    //宽高
    override var width: Int = Config.block
    override var height: Int = Config.block

    //显示->行为
    override fun draw() {
        Painter.drawImage("img/grass.gif", x, y)
    }

}